<template>
    <a-modal
        :width="800"
        title="选择委托人"
        :visible.sync="modalVisible"
        @cancel="handleCancleDbSync"
        @ok="handleOkDbSync"
      >
        <j-select-user-by-dep v-model="multiUser" :multi="false" @change="userChange"></j-select-user-by-dep>
      </a-modal>
</template>
<script>
import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
// import JSelectMultiUser from '@/components/jeecgbiz/JSelectMultiUser'
export default {
  name: 'taskEntrustModel',
  components: {
    JSelectUserByDep
  },
  mixins: [],
  computed: {

  },
  data() {
    return {
      multiUser: '',
      multiUserName: '',
      modalVisible: false
    }
  },
  created() {

  },
  methods: {
    handleCancleDbSync() {
      this.modalVisible = false
    },
    userChange(data) {
      this.multiUserName = data
    },
    handleOkDbSync() {
      this.$emit('ok', this.multiUserName)
    }
  }
}
</script>
<style lang="less">

</style>
